# import sys
# file=sys.stdout
# # file.write("hello world")
# file=open('test.txt',mode='r',buffering=-1)
# print(file.read(3))
# with open('test.txt',mode='r',encoding='utf-8') as file2:
#     list2=file2.readlines()
#     print(list2)
#     print(file2.readline())
#     print(file2.readline())
#
# str="day day up"
# with open('test.txt','w',encoding='utf-8')as file3:
#     file3.write(str)
# list3=['hello','world']
# with open('test.txt','a',encoding='utf-8')as file4:
#     file4.writelines(list3)
file = open('test.txt','rb')
print(file.read(1))
print(file.read(1))
print(file.tell())
print(file.seek(2,0))
